import { simpleGit, CleanOptions } from 'simple-git';

const Test = () => {
    const git = simpleGit()

    const add = async () => {
        console.log(1111);

        try {
            // await git.init()
            await git.add(".")
            await git.commit("测试提交")
            await git.addRemote("origin", "https://gitee.com/liu_yu_yang666/test.git")
            await git.push("origin", "main")
        } catch (error) {
            console.log(error, 223);

        }
    }
    add()

    return <><h1>test</h1></>
}

export default Test